package com.lt.test.consumer.web.controller;


import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * 跳转页面
 */
@Controller
@RequestMapping("/goto")
public class GotoController {

//    出入库明细	@/ktcount/ktInOutInfo
//    门店入库数据	@/ktcount/ktInstore
//    进销存月报表	@/ktcount/ktPss
//    店铺商品查询	@/ktcount/ktSellstock
//    门店销售数据	@/ktcount/shipmentOrderDataStatistics
//    门店库存分析	@/page/productanalyze
//    库存查询	@/page/stock

//    零售毛利分析	@/report/retailProfit.jsp
//    销售流水	@/report/salesFlow.jsp
//    销售汇总表	@/report/salesSummary.jsp
//    仓配明细	@/report/storeMatch.jsp
//    库存查询	@/report/storeQuery.jsp
//    转仓查询	@/report/transferStore.jsp

//    订单配送	@/shop/toAOGList
//    配送统计	@/shop/toAOGStatisticsList
//    客户二维码生成	@/shop/toQrcodegenerate
//    销售汇总分析	@/shop/toSmokeShopStatistics


    /**
     * 排班管理	attendnScheduling
     * @return
     */
    @RequestMapping("/attendnScheduling")
    public String attendnScheduling(){
        return "content/attendn/scheduling";
    }

    /**
     * 客户信息查询	clouderpClienteleTobacco
     * @return
     */
    @RequestMapping("/clouderpClienteleTobacco")
    public String clouderpClienteleTobacco(){
        return "content/clouderp/clientele/tobacco";
    }

    /**
     * 图文消息推送	clouderpCloudlingImage
     * @return
     */
    @RequestMapping("/clouderpCloudlingImage")
    public String clouderpCloudlingImage(){
        return "content/clouderp/cloudling/image";
    }

    /**
     * 文本消息推送	clouderpCloudlingText
     * @return
     */
    @RequestMapping("/clouderpCloudlingText")
    public String clouderpCloudlingText(){
        return "content/clouderp/cloudling/text";
    }

    /**
     * 年月周时间设置	clouderpOrderDatemapping
     * @return
     */
    @RequestMapping("/clouderpOrderDatemapping")
    public String clouderpOrderDatemapping(){
        return "content/clouderp/order/datemapping";
    }

    /**
     * 客户月度推荐	clouderpOrderGrmaintainfranchiseePromotionIndex
     * @return
     */
    @RequestMapping("/clouderpOrderGrmaintain")
    public String clouderpOrderGrmaintain(){
        return "content/clouderp/order/grmaintain";
    }

    /**
     * 客户单品推荐	clouderpOrderRecommend
     * @return
     */
    @RequestMapping("/clouderpOrderRecommend")
    public String clouderpOrderRecommend(){
        return "content/clouderp/order/recommend";
    }

    /**
     * 推荐订单统计	clouderpOrderRecommendstatistics
     * @return
     */
    @RequestMapping("/clouderpOrderRecommendstatistics")
    public String clouderpOrderRecommendstatistics(){
        return "content/clouderp/order/recommendstatistics";
    }

    /**
     * 烟草客户订单	clouderpOrderSplorder
     * @return
     */
    @RequestMapping("/clouderpOrderSplorder")
    public String clouderpOrderSplorder(){
        return "content/clouderp/order/splorder";
    }

    /**
     * 清除缓存	clouderpRedisClean
     * @return
     */
    @RequestMapping("/clouderpRedisClean")
    public String clouderpRedisClean(){
        return "content/clouderp/redis/clean";
    }

//    /**
//     * 店铺管理	clouderpShop
//     * @return
//     */
//    @RequestMapping("/clouderpShop")
//    public String tclouderpShop(){
//        return "content/clouderp/shop/audit";
//    }

    /**
     * 客户店铺	clouderpShopAudit
     * @return
     */
    @RequestMapping("/clouderpShopAudit")
    public String clouderpShopAudit(){
        return "content/clouderp/shop/audit";
    }

    /**
     * 加盟管理	clouderpShopAudit6
     * @return
     */
    @RequestMapping("/clouderpShopAudit6")
    public String clouderpShopAudit6(){
        return "content/clouderp/shop/audit6";
    }

    /**
     * 收单行维护	clouderpShopBankmaintain
     * @return
     */
    @RequestMapping("/clouderpShopBankmaintain")
    public String clouderpShopBankmaintain(){
        return "content/clouderp/shop/bankmaintain";
    }

    /**
     * 修改用户角色	clouderpShopChangerole
     * @return
     */
    @RequestMapping("/clouderpShopChangerole")
    public String clouderpShopChangerole(){
        return "content/clouderp/shop/changerole";
    }

    /**
     * 路线分配	clouderpShopCourierallocation
     * @return
     */
    @RequestMapping("/clouderpShopCourierallocation")
    public String clouderpShopCourierallocation(){
        return "content/clouderp/shop/courierallocation";
    }

    /**
     * 客户店铺授权关系	clouderpShopCust2shop
     * @return
     */
    @RequestMapping("/clouderpShopCust2shop")
    public String clouderpShopCust2shop(){
        return "content/clouderp/shop/cust2shop";
    }

    /**
     * 加盟审核	clouderpShopJoinexam
     * @return
     */
    @RequestMapping("/clouderpShopJoinexam")
    public String clouderpShopJoinexam(){
        return "content/clouderp/shop/joinexam";
    }

    /**
     * 会员	franchiseeMemberIndex
     * @return
     */
    @RequestMapping("/franchiseeMemberIndex")
    public String franchiseeMemberIndex(){
        return "content/franchisee/member/index";
    }


    @RequestMapping("/memberInfo")
    public String memberInfo(HttpServletRequest request, Model model){
        String mobile = request.getParameter("mobile");
        model.addAttribute("mobile", mobile);
        return "content/franchisee/member/memberInfo";
    }

    /**
     * 入库单	franchiseePrementDocumentsEnter_warehouse
     * @return
     */
    @RequestMapping("/franchiseePrementDocumentsEnter_warehouse")
    public String franchiseePrementDocumentsEnter_warehouse(){
        return "content/franchisee/prement/documents/enter_warehouse";
    }

    /**
     * 入库单详情	franchiseePrementDocumentsEnter_warehouse_info
     * @return
     */
    @RequestMapping("/franchiseePrementDocumentsEnter_warehouse_info")
    public String franchiseePrementDocumentsEnter_warehouse_info(HttpServletRequest request, Model model){
        String id = request.getParameter("id");
        String type = request.getParameter("type");
        String approveFlag =request.getParameter("approveFlag");
        model.addAttribute("id",id);
        model.addAttribute("type", type);
        model.addAttribute("approveFlag", approveFlag);
        return "content/franchisee/prement/documents/ex_warehouse_info";
    }

    /**
     * 出库单	franchiseePrementDocumentsEx_warehouse
     * @return
     */
    @RequestMapping("/franchiseePrementDocumentsEx_warehouse")
    public String franchiseePrementDocumentsEx_warehouse(){
        return "content/franchisee/prement/documents/ex_warehouse";
    }

    /**
     * 出库单详情	franchiseePrementDocumentsEx_warehouse_info
     * @return
     */
    @RequestMapping("/franchiseePrementDocumentsEx_warehouse_info")
    public String franchiseePrementDocumentsEx_warehouse_info(HttpServletRequest request, Model model){
        String id = request.getParameter("id");
        String type = request.getParameter("type");
        String state =request.getParameter("approveFlag");
        model.addAttribute("id",id);
        model.addAttribute("type",type);
        model.addAttribute("state",state);
        return "content/franchisee/prement/documents/ex_warehouse_info";
    }

    /**
     * 采购向导	franchiseePrementDocumentsGuide
     * @return
     */
    @RequestMapping("/franchiseePrementDocumentsGuide")
    public String franchiseePrementDocumentsGuide(){
        return "content/franchisee/prement/documents/guide";
    }

    /**
     * 采购订单	franchiseePrementDocumentsOrder
     * @return
     */
    @RequestMapping("/franchiseePrementDocumentsOrder")
    public String franchiseePrementDocumentsOrder(){
        return "content/franchisee/prement/documents/order";
    }

    /**
     * 采购订单详情	franchiseePrementDocumentsOrderinfo
     * @return
     */
    @RequestMapping("/franchiseePrementDocumentsOrderinfo")
    public String franchiseePrementDocumentsOrderinfo(HttpServletRequest request, Model model){
        String id = request.getParameter("id");
        String type = request.getParameter("type");
        String supplierName = request.getParameter("supplierName");
        String approveFlag = request.getParameter("approveFlag");
        model.addAttribute("id",id);
        model.addAttribute("type",type);
        model.addAttribute("supplierName",supplierName);
        model.addAttribute("approveFlag",approveFlag);
        return "content/franchisee/prement/documents/orderinfo";
    }

    /**
     * 退货订单	franchiseePrementDocumentsOrdergds
     * @return
     */
    @RequestMapping("/franchiseePrementDocumentsOrdergds")
    public String franchiseePrementDocumentsOrdergds(){
        return "content/franchisee/prement/documents/ordergds";
    }

    /**
     * 退货订单详情	franchiseePrementDocumentsOrderinfogds
     * @return
     */
    @RequestMapping("/franchiseePrementDocumentsOrderinfogds")
    public String franchiseePrementDocumentsOrderinfogds(HttpServletRequest request, Model model){
        String id = request.getParameter("id");
        String type = request.getParameter("type");
        String repertoryId = request.getParameter("repertoryId");
        String approveFlag = request.getParameter("approveFlag");
        model.addAttribute("id",id);
        model.addAttribute("type",type);
        model.addAttribute("repertoryId",repertoryId);
        model.addAttribute("approveFlag",approveFlag);
        return "content/franchisee/prement/documents/orderinfogds";
    }

    /**
     * 快速采购	franchiseePrementDocumentsRequisition-order
     * @return
     */
    @RequestMapping("/franchiseePrementDocumentsRequisition-order")
    public String franchiseePrementDocumentsRequisition_order(){
        return "content/franchisee/prement/documents/requisition-order";
    }

    /**
     * 发起退货	franchiseePrementDocumentsReturnedgoods
     * @return
     */
    @RequestMapping("/franchiseePrementDocumentsReturnedgoods")
    public String franchiseePrementDocumentsReturnedgoods(){
        return "content/franchisee/prement/documents/returnedgoods";
    }

    /**
     * 采购收货	franchiseePrementDocumentsTakedelivery
     * @return
     */
    @RequestMapping("/franchiseePrementDocumentsTakedelivery")
    public String franchiseePrementDocumentsTakedelivery(){
        return "content/franchisee/prement/documents/takedelivery";
    }

    /**
     * 订烟申购	franchiseePrementIndex3
     * @return
     */
    @RequestMapping("/franchiseePrementIndex3")
    public String franchiseePrementIndex3(){
        return "content/franchisee/prement/index3";
    }

    /**
     * 紧俏烟申购	franchiseePrementShortIndex
     * @return
     */
    @RequestMapping("/franchiseePrementShortIndex")
    public String franchiseePrementShortIndex(){
        return "content/franchisee/prement/short/index";
    }

    /**
     * 区域管理	franchiseePrementSupplierArea
     * @return
     */
    @RequestMapping("/franchiseePrementSupplierArea")
    public String franchiseePrementSupplierArea(){
        return "content/franchisee/prement/supplier/area";
    }

    /**
     * 供应商管理	franchiseePrementSupplierRecord
     * @return
     */
    @RequestMapping("/franchiseePrementSupplierRecord")
    public String franchiseePrementSupplierRecord(){
        return "content/franchisee/prement/supplier/record";
    }

    /**
     * 供应商商品管理	franchiseePrementSupplierSuppliercoommdity
     * @return
     */
    @RequestMapping("/franchiseePrementSupplierSuppliercoommdity")
    public String franchiseePrementSupplierSuppliercoommdity(HttpServletRequest request, Model model){
        String id = request.getParameter("id");
        model.addAttribute("id",id);
        return "content/franchisee/prement/supplier/suppliercoommdity";
    }

    /**
     * 商品信息管理	franchiseeProdInfo
     * @return
     */
    @RequestMapping("/franchiseeProdInfo")
    public String franchiseeProdInfo(){
        return "content/franchisee/prod/info";
    }

    /**
     * 价格管理	franchiseeProdPrice
     * @return
     */
    @RequestMapping("/franchiseeProdPrice")
    public String franchiseeProdPrice(){
        return "content/franchisee/prod/price";
    }

    /**
     * 商品分类管理	franchiseeProdType
     * @return
     */
    @RequestMapping("/franchiseeProdType")
    public String franchiseeProdType(){
        return "content/franchisee/prod/type";
    }

    /**
     * 品牌	franchiseeProduceSectionIndex
     * @return
     */
    @RequestMapping("/franchiseeProduceSectionIndex")
    public String franchiseeProduceSectionIndex(){
        return "content/franchisee/produce/section/index";
    }

    /**
     * 卡卷管理	franchiseePromotionCoupon
     * @return
     */
    @RequestMapping("/franchiseePromotionCoupon")
    public String franchiseePromotionCoupon(){
        return "content/franchisee/promotion/coupon";
    }

    /**
     * 促销方案	franchiseePromotionIndex
     * @return
     */
    @RequestMapping("/franchiseePromotionIndex")
    public String franchiseePromotionIndex(){
        return "content/franchisee/promotion/index";
    }

    /**
     * 调拨要货订单	franchiseeShopAllot-orders
     * @return
     */
    @RequestMapping("/franchiseeShopAllot-orders")
    public String franchiseeShopAllot_orders(){
        return "content/franchisee/shop/allot-orders";
    }


    /**
     * 调拨要货订单详情	franchiseeShopAllot-orderinfo
     * @return
     */
    @RequestMapping("/franchiseeShopAllot-orderinfo")
    public String franchiseeShopAllot_orderinfo(){
        return "content/franchisee/shop/allot-orderinfo";
    }

    /**
     * 调拨要货	franchiseeShopAllot-product
     * @return
     */
    @RequestMapping("/franchiseeShopAllot-product")
    public String franchiseeShopAllot_product(){
        return "content/franchisee/shop/allot-product";
    }

    /**
     * 损益订单	franchiseeShopLossprofit
     * @return
     */
    @RequestMapping("/franchiseeShopLossprofit")
    public String franchiseeShopLossprofit(){
        return "content/franchisee/shop/lossprofit";
    }

    /**
     * 损益订单详情	franchiseeShopLossprofitltem
     * @return
     */
    @RequestMapping("/franchiseeShopLossprofitltem")
    public String franchiseeShopLossprofitltem(HttpServletRequest request, Model model){
        String id = request.getParameter("id");
        model.addAttribute("id",id);
        return "content/franchisee/shop/lossprofitltem";
    }

    /**
     * 门店订单	franchiseeShopRequisition-order
     * @return
     */
    @RequestMapping("/franchiseeShopRequisition-order")
    public String franchiseeShopRequisition_order(){
        return "content/franchisee/shop/requisition-order";
    }

    /**
     * 门店单详情	franchiseeShopRequisition
     * @return
     */
    @RequestMapping("/franchiseeShopRequisition")
    public String franchiseeShopRequisition(HttpServletRequest request, Model model){
        String id = request.getParameter("id");
        model.addAttribute("id", id);
        return "content/franchisee/shop/requisition";
    }

    /**
     * 门店要货处理	franchiseeShopRequisition-orders
     * @return
     */
    @RequestMapping("/franchiseeShopRequisition-orders")
    public String franchiseeShopRequisition_orders(){
        return "content/franchisee/shop/requisition-orders";
    }

    /**
     * 门店要货处理详情	franchiseeShopRequisition
     * @return
     */
    @RequestMapping("/franchiseeShopRequisitions")
    public String franchiseeShopRequisitions(HttpServletRequest request, Model model){
        String id = request.getParameter("id");
        model.addAttribute("id", id);
        return "content/franchisee/shop/requisitions";
    }

    /**
     * 快速要货	franchiseeShopRequisition-product
     * @return
     */
    @RequestMapping("/franchiseeShopRequisition-product")
    public String franchiseeShopRequisition_product(){
        return "content/franchisee/shop/requisition-product";
    }

    /**
     * 紧缺烟申购	franchiseeShopSellwell
     * @return
     */
    @RequestMapping("/franchiseeShopSellwell")
    public String franchiseeShopSellwell(){
        return "content/franchisee/shop/sellwell";
    }

    /**
     * 营销中心审批	franchiseeShopSellwell-t
     * @return
     */
    @RequestMapping("/franchiseeShopSellwell-t")
    public String franchiseeShopSellwell_t(){
        return "content/franchisee/shop/sellwell-t";
    }

    /**
     * 参数类型	franchiseeSystemCanshu
     * @return
     */
    @RequestMapping("/franchiseeSystemCanshu")
    public String franchiseeSystemCanshu(){
        return "content/franchisee/system/canshu";
    }


    /**
     * 人员	franchiseeSystemUser
     * @return
     */
    @RequestMapping("/franchiseeSystemUser")
    public String franchiseeSystemUser(){
        return "content/franchisee/system/user";
    }


    /**
     * 盘点分析	franchiseeTakestockIndex
     * @return
     */
    @RequestMapping("/franchiseeTakestockIndex")
    public String franchiseeTakestockIndex(){
        return "content/franchisee/takestock/index";
    }

    /**
     * 区域	franchiseeTissueSectionIndex
     * @return
     */
    @RequestMapping("/franchiseeTissueSectionIndex")
    public String franchiseeTissueSectionIndex(){
        return "content/franchisee/tissue/section/index";
    }

    /**
     * 部门	franchiseeTissueSectionOrg
     * @return
     */
    @RequestMapping("/franchiseeTissueSectionOrg")
    public String franchiseeTissueSectionOrg(){
        return "content/franchisee/tissue/section/org";
    }

    /**
     * 促销进价单	 franchiseePrementDocumentsBuyingprice
     * @return
     */
    @RequestMapping("/prementDocumentsBuyingprice")
    public String prementDocumentsBuyingprice(){
        return "content/franchisee/prement/documents/buyingprice";
    }


//    /**
//     * 权限管理	systemPrivilege
//     * @return
//     */
//    @RequestMapping("/systemPrivilege")
//    public String systemPrivilege(){
//        return "content/system/privilege";
//    }

    /**
     * 角色管理	systemRole
     * @return
     */
    @RequestMapping("/systemRole")
    public String systemRole(){
        return "content/system/role";
    }

    /**
     * 用户管理	systemUser
     * @return
     */
    @RequestMapping("/systemUser")
    public String systemUser(){
        return "content/system/user";
    }

//    /**
//     * 删除用户	systemUserDelete
//     * @return
//     */
//    @RequestMapping("/systemUserDelete")
//    public String systemUserDelete(){
//        return "content/system/user/delete";
//    }

    /**
     * 微信商城订单 weixinOrder
     * @param request
     * @return
     */
    @RequestMapping("/weixinOrder")
    public String weixinOrder(HttpServletRequest request){
        return "content/supplier/weixinOrder";
    }

}
